/*
 * @Author: zhouwr 1551541860@qq.com
 * @Date: 2024-02-21 16:02:43
 * @LastEditors: zhouwr 1551541860@qq.com
 * @LastEditTime: 2024-02-22 00:23:52
 * @FilePath: /jeecgboot-vue3/src/views/activiti/procdef/components/actProcessDefConfig/business/ConfigBusiness.api.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { defHttp } from '/@/utils/http/axios'

enum Api {
  getProcdefBusiness = '/act/procdef/getProcdefBusiness',
  addProcdefBusiness = '/act/procdef/addProcdefBusiness',
  updateProcdefBusiness = '/act/procdef/updateProcdefBusiness',
}

/**
 * 获取流程定义关联业务
 *
 * @param params: {procdefId: string}
 * @returns
 */
export const getProcdefBusiness = (params) => defHttp.get({ url: Api.getProcdefBusiness, params })

/**
 * 新增流程定义关联业务
 *
 * @param params: {procdefBusiness: object}
 * @returns
 */
export const addProcdefBusiness = (params) => defHttp.post({ url: Api.addProcdefBusiness, params })

/**
 * 更新流程定义关联业务
 *
 * @param params: {procdefBusiness: object}
 * @returns
 */
export const updateProcdefBusiness = (params) => defHttp.post({ url: Api.updateProcdefBusiness, params })
